package com.gdpu.watermelontimer.data

import androidx.room.Entity
import androidx.room.PrimaryKey
//任务的属性
@Entity(tableName = "tasks")
data class Task(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    val name: String,
    val description: String = "",
    val category: String = "工作",
    val priority: Priority = Priority.ROUTINE,
    val estimatedPomodoros: Int = 1,
    val completedPomodoros: Int = 0,
    val isCompleted: Boolean = false,
    val createdAt: Long = System.currentTimeMillis(),
    val updatedAt: Long = System.currentTimeMillis(),
    val userId: Long = 0L
) {
    enum class Priority {
        ROUTINE, IMPORTANT, URGENT
    }
} 